package com.tiny.core.resources;

import java.applet.Applet;
import java.applet.AudioClip;
import java.net.URL;

/**
 * Carrega e faz cache de recursos de audio para o jogo
 * 
 * @author Erick Zanardo
 *
 */
public class AudioManager extends ResourceManager<AudioClip> {

    public AudioClip loadAudio(String fileName) {
        return load(fileName);
    }

    @Override
    protected AudioClip processUrl(URL url) {
        return Applet.newAudioClip(url);
    }
}
